package com.aos.erp.schools.service.branchschool;


import com.aos.erp.common.bean.IPageBean;
import com.aos.erp.common.bean.ResultEntity;
import com.aos.erp.common.exception.BizException;
import com.aos.erp.schools.model.branchschool.entity.BranchSchool;
import com.aos.erp.schools.model.branchschool.ro.BranchSchoolRo;
import com.aos.erp.schools.model.branchschool.ro.UpdateBranchSchoolRo;
import com.aos.erp.schools.model.branchschool.vo.BranchSchoolVo;
import com.aos.erp.schools.model.branchschool.vo.ListBranchSchoolVo;
import com.aos.erp.schools.model.registerschool.entity.RegisterSchool;
import com.aos.erp.schools.model.registerschool.ro.RegisterSchoolRo;
import com.aos.erp.schools.model.registerschool.ro.UpdateRegisterSchoolRo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 省市对应分所 服务类
 * </p>
 *
 * @author chb
 * @since 2018-10-31
 */
public interface BranchSchoolService extends IService<BranchSchool> {
/*

	int addRegister(RegisterSchoolRo registerSchoolRo);



	ResultEntity registerInfo(Long id);
*/
	ResultEntity updateBranch(UpdateBranchSchoolRo updateBranchSchoolRo);

	boolean deleteBranch(Long id) throws BizException;

	IPageBean queryByPage(Integer pageIndex, Integer pageSize, String name,String currentUserId) throws Exception;

	int addBranch(BranchSchoolRo branchSchoolRo) throws Exception;

	BranchSchoolVo branchInfo(Long id);

	List<ListBranchSchoolVo> getInfoByGather(Long id);
}
